home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / dot.lang < prev    next >
Encoding:
Extensible Markup Language  |  2009-04-13  |  4.3 KB  |  140 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Paolo Borelli <pborelli@gnome.org>
  5.  Copyright (C) 2008 Paolo Borelli
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <language id="dot" _name="Graphviz Dot" version="2.0" _section="Others">
  24.   <metadata>
  25.     <property name="mimetypes">text/vnd.graphviz</property>
  26.     <property name="globs">*.dot;*.gv</property>
  27.     <property name="line-comment-start">//</property>
  28.     <property name="block-comment-start">/*</property>
  29.     <property name="block-comment-end">*/</property>
  30.   </metadata>
  31.  
  32.   <styles>
  33.     <style id="comment" _name="Comment" map-to="def:comment"/>
  34.     <style id="error" _name="Error" map-to="def:error"/>
  35.     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  36.     <style id="attribute" _name="Attribute name" map-to="def:type"/>
  37.   </styles>
  38.  
  39.   <definitions>
  40.  
  41.     <context id="line-comment" style-ref="comment" end-at-line-end="true">
  42.       <start>//</start>
  43.       <include>
  44.         <context ref="def:in-line-comment"/>
  45.       </include>
  46.     </context>
  47.  
  48.     <context id="block-comment" style-ref="comment">
  49.       <start>/\*</start>
  50.       <end>\*/</end>
  51.       <include>
  52.         <context ref="def:in-comment"/>
  53.       </include>
  54.     </context>
  55.  
  56.     <context id="close-comment-outside-comment" style-ref="error">
  57.       <match>\*/(?!\*)</match>
  58.     </context>
  59.  
  60.     <context id="keywords" style-ref="keyword">
  61.       <keyword>digraph</keyword>
  62.       <keyword>edge</keyword>
  63.       <keyword>node</keyword>
  64.       <keyword>subgraph</keyword>
  65.     </context>
  66.  
  67.     <context id="attributes" style-ref="attribute">
  68.       <keyword>arrowhead</keyword>
  69.       <keyword>arrowsize</keyword>
  70.       <keyword>arrowtail</keyword>
  71.       <keyword>bgcolor</keyword>
  72.       <keyword>center</keyword>
  73.       <keyword>color</keyword>
  74.       <keyword>constraint</keyword>
  75.       <keyword>decorateP</keyword>
  76.       <keyword>dir</keyword>
  77.       <keyword>distortion</keyword>
  78.       <keyword>fillcolor</keyword>
  79.       <keyword>fontcolor</keyword>
  80.       <keyword>fontname</keyword>
  81.       <keyword>fontsize</keyword>
  82.       <keyword>headclip</keyword>
  83.       <keyword>headlabel</keyword>
  84.       <keyword>height</keyword>
  85.       <keyword>labelangle</keyword>
  86.       <keyword>labeldistance</keyword>
  87.       <keyword>labelfontcolor</keyword>
  88.       <keyword>labelfontname</keyword>
  89.       <keyword>labelfontsize</keyword>
  90.       <keyword>label</keyword>
  91.       <keyword>layers</keyword>
  92.       <keyword>layer</keyword>
  93.       <keyword>margin</keyword>
  94.       <keyword>mclimit</keyword>
  95.       <keyword>minlen</keyword>
  96.       <keyword>name</keyword>
  97.       <keyword>nodesep</keyword>
  98.       <keyword>nslimit</keyword>
  99.       <keyword>ordering</keyword>
  100.       <keyword>orientation</keyword>
  101.       <keyword>pagedir</keyword>
  102.       <keyword>page</keyword>
  103.       <keyword>peripheries</keyword>
  104.       <keyword>port_label_distance</keyword>
  105.       <keyword>rankdir</keyword>
  106.       <keyword>ranksep</keyword>
  107.       <keyword>rank</keyword>
  108.       <keyword>ratio</keyword>
  109.       <keyword>regular</keyword>
  110.       <keyword>rotate</keyword>
  111.       <keyword>samehead</keyword>
  112.       <keyword>sametail</keyword>
  113.       <keyword>shapefile</keyword>
  114.       <keyword>shape</keyword>
  115.       <keyword>sides</keyword>
  116.       <keyword>size</keyword>
  117.       <keyword>skew</keyword>
  118.       <keyword>style</keyword>
  119.       <keyword>tailclip</keyword>
  120.       <keyword>taillabel</keyword>
  121.       <keyword>URL</keyword>
  122.       <keyword>weight</keyword>
  123.       <keyword>width</keyword>
  124.     </context>
  125.  
  126.     <context id="dot">
  127.       <include>
  128.         <context ref="line-comment"/>
  129.         <context ref="block-comment"/>
  130.         <context ref="close-comment-outside-comment"/>
  131.         <context ref="keywords"/>
  132.         <context ref="attributes"/>
  133.       </include>
  134.     </context>
  135.  
  136.   </definitions>
  137.  
  138. </language>
  139.  
  140.